#!/usr/bin/env python
#coding=utf-8

from aladin.database import db

class Feedback(db.Model):
    __tablename__ = 'feedback'

    uid = db.Column(db.Integer, primary_key=True)
    content = db.Column(db.String(255), default=None)
    time = db.Column(db.Integer, default=None)
    username = db.Column(db.String(32), default='')
    mobile = db.Column(db.String(16), default='')

    def __str__(self):
        return "Feedback => { \
uid:%d, content:'%s', time:%d, username:'%s', mobile:'%s'}" % (
self.uid, self.content, self.time, self.username, self.mobile)

    __repr__ = __str__
